﻿using System.Collections.Generic;
using ExcellentCRM.DataService.Models;

namespace ExcellentCRM.DataService.IServices
{
    public interface IBaseService<T> where T : BaseModel
    {
        T GetModel(long id);
        IEnumerable<T> GetModels();
        ServiceResult Delete(long id);
        ServiceResult Save(T model);
    }
}